package com.ruoyi.project.system.order.order.dto;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.project.system.order.order.domain.OrderOrder;
import com.ruoyi.project.system.order.ordergoods.domain.OrderGoods;
import com.ruoyi.project.system.order.ordergoods.dto.OrderGoodsDto;

/**
 * 功能：
 *
 * @author：dell
 * @create：2020/6/18 15:40
 * @version：2020 Version：1.0
 * @company：老屋新房 Created with IntelliJ IDEA
 */
public class OrderOrderDto extends OrderOrder {
	//买家昵称
	@Excel(name = "买家昵称")
	private String userName;


	//商品集合
	private List<OrderGoodsDto> goodsList;

	//购物车
	private ArrayList cartIds;

	//退款金额
	private BigDecimal refundPrice;
	//退款状态
	private Integer refundStatus;
	//退款原因
	private String result;
	//申请时间
	private Date refundCreated;
	//结束时间戳
	private Long endTimeL;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public List<OrderGoodsDto> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(List<OrderGoodsDto> goodsList) {
		this.goodsList = goodsList;
	}

	public ArrayList getCartIds() {
		return cartIds;
	}

	public void setCartIds(ArrayList cartIds) {
		this.cartIds = cartIds;
	}

	public BigDecimal getRefundPrice() {
		return refundPrice;
	}

	public void setRefundPrice(BigDecimal refundPrice) {
		this.refundPrice = refundPrice;
	}

	public Integer getRefundStatus() {
		return refundStatus;
	}

	public void setRefundStatus(Integer refundStatus) {
		this.refundStatus = refundStatus;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public Date getRefundCreated() {
		return refundCreated;
	}

	public void setRefundCreated(Date refundCreated) {
		this.refundCreated = refundCreated;
	}

	public Long getEndTimeL() {
		return endTimeL;
	}

	public void setEndTimeL(Date created) {
		this.endTimeL = new Date(created.getTime()+(15*60*1000)).getTime();
	}
}
